{% extends "admin/base_site.html" %}
{% load i18n static %}

{% block content %}
<div id="content-main">
    <h1>{% trans "上传文件" %}</h1>
    
    <form method="post" enctype="multipart/form-data" id="uploadForm">
        {% csrf_token %}
        <div class="form-row">
            <label for="path">{% trans "目标路径:" %}</label>
            <input type="text" name="path" value="{{ file_root }}" class="vTextField">
        </div>
        <div class="form-row">
            <label for="files">{% trans "选择文件:" %}</label>
            <input type="file" name="files" multiple id="fileInput">
        </div>
        <div class="submit-row">
            <input type="submit" value="{% trans '上传' %}" class="default">
        </div>
        <div id="progressContainer"></div>
    </form>
</div>
{% endblock %}
